#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int Fibonacci(int n)
{
    if (n == 0)
    {
        return n;
    }
    int arr[40] = { 1,1 };
    for (int i = 2; i < n; i++)
    {
        arr[i] = arr[i - 2] + arr[i - 1];
    }
    return arr[n - 1];
}

int main()
{
    printf("%d\n", Fibonacci(39));
    return 0;
}